package com.demo.spring.cloud;

import com.demo.entity.EmailNotificationDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 邮件消费
 *
 * @author Nina
 * @create 2018/8/29 下午2:51
 */
@Component
public class EmailConsumer {
    private static final Logger LOGGER = LoggerFactory.getLogger(EmailConsumer.class);


    @EventListener
    public void build(EmailNotificationDTO emailNotificationDTO) {
        LOGGER.info("[EmailConsumer:build]:{}", emailNotificationDTO);
    }
}

